home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / ProgressBarBeanInfo.java < prev    next >
Text File  |  1998-08-21  |  20KB  |  495 lines

  1. package symantec.itools.awt.util;
  2.  
  3. import java.beans.*;
  4. import symantec.itools.beans.*;
  5. import java.util.ResourceBundle;
  6.  
  7. //  08/26/97    LAB    Updated connections for static values.  Changed borderedColor to borderColor.
  8. //                    Changed english descriptions of properties to be consistant with property names
  9. //                    (Addresses Mac Bug #7500).  Updated names of connections to be correct.
  10. //                    Removed connections associated with deprecated properties.  Added connections
  11. //                    to support the BevelStyle property.  Added connections for AlignStyle property.
  12. //  08/19/98    LAB    Moved to GroupAWTAdditions folder.
  13.  
  14. /**
  15.  * BeanInfo for ProgressBar.
  16.  *
  17.  */
  18.  
  19. public class ProgressBarBeanInfo extends SimpleBeanInfo {
  20.  
  21.     /**
  22.      * Constructs a ProgressBarBeanInfo object.
  23.      */
  24.     public ProgressBarBeanInfo() {
  25.     }
  26.  
  27.     /**
  28.      * Gets a BeanInfo for the superclass of this bean.
  29.      * @return BeanInfo[] containing this bean's superclass BeanInfo
  30.      */
  31.     public BeanInfo[] getAdditionalBeanInfo() {
  32.         try {
  33.             BeanInfo[] bi = new BeanInfo[1];
  34.             bi[0] = Introspector.getBeanInfo(beanClass.getSuperclass());
  35.             return bi;
  36.         }
  37.         catch (IntrospectionException e) { throw new Error(e.toString());}
  38.     }
  39.  
  40.     /**
  41.      * Gets the SymantecBeanDescriptor for this bean.
  42.      * @return an object of type SymantecBeanDescriptor
  43.      * @see symantec.itools.beans.SymantecBeanDescriptor
  44.      */
  45.     public BeanDescriptor getBeanDescriptor()
  46.     {
  47.         ResourceBundle group = ResourceBundle.getBundle("symantec.itools.resources.GroupBundle");
  48.         String s=group.getString("GroupAWTAdditions"); 
  49.  
  50.         SymantecBeanDescriptor bd = new SymantecBeanDescriptor(beanClass);
  51.         bd.setFolder(s);
  52.         bd.setWinHelp("0x12395");
  53.  
  54.         ResourceBundle conn = ResourceBundle.getBundle("symantec.itools.resources.ConnBundle");
  55.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.BEVEL_LOWERED", conn.getString("BEVEL_LOWERED")));
  56.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.BEVEL_RAISED", conn.getString("BEVEL_RAISED")));
  57.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.BEVEL_LINE", conn.getString("BEVEL_LINE")));
  58.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.BEVEL_NONE", conn.getString("BEVEL_NONE")));
  59.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.ALIGN_LEFT", conn.getString("ALIGN_LEFT")));
  60.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.ALIGN_CENTERED",conn.getString("ALIGN_CENTERED")));
  61.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.ALIGN_RIGHT",conn.getString("ALIGN_RIGHT")));
  62.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.INDENT_ZERO", conn.getString("INDENT_ZERO")));
  63.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.INDENT_ONE", conn.getString("INDENT_ONE")));
  64.         bd.addConnectionDescriptor(new ConnectionDescriptor("output", "int", "", "%name%.INDENT_TWO", conn.getString("INDENT_TWO")));
  65.  
  66.  
  67.         return (BeanDescriptor) bd;
  68.     }
  69.  
  70.     /**
  71.      * Gets an image that may be used to visually represent this bean
  72.      * (in the toolbar, on a form, etc).
  73.      * @param iconKind the type of icon desired, one of: BeanInfo.ICON_MONO_16x16,
  74.      * BeanInfo.ICON_COLOR_16x16, BeanInfo.ICON_MONO_32x32, or BeanInfo.ICON_COLOR_32x32.
  75.      * @return an image for this bean, always color even if requested monochrome
  76.      * @see BeanInfo#ICON_MONO_16x16
  77.      * @see BeanInfo#ICON_COLOR_16x16
  78.      * @see BeanInfo#ICON_MONO_32x32
  79.      * @see BeanInfo#ICON_COLOR_32x32
  80.      */
  81.     public java.awt.Image getIcon(int iconKind) {
  82.         if (iconKind == BeanInfo.ICON_MONO_16x16 ||
  83.             iconKind == BeanInfo.ICON_COLOR_16x16) {
  84.             java.awt.Image img = loadImage("ProgressBarC16.gif");
  85.             return img;
  86.         }
  87.  
  88.         if (iconKind == BeanInfo.ICON_MONO_32x32 ||
  89.             iconKind == BeanInfo.ICON_COLOR_32x32) {
  90.             java.awt.Image img = loadImage("ProgressBarC32.gif");
  91.             return img;
  92.         }
  93.  
  94.         return null;
  95.     }
  96.  
  97.     /**
  98.      * Gets an array of descriptions of the methods used for "connections" by
  99.      * Visual CafΘ's Interaction Wizard.
  100.      * Included in each method description is a CONNECTIONS ConnectionDescriptor.
  101.      * @return method descriptions for this bean
  102.      * @see symantec.itools.beans.ConnectionDescriptor#CONNECTIONS
  103.      */
  104.     public MethodDescriptor[] getMethodDescriptors() {
  105.         Class[] args;
  106.         ConnectionDescriptor connection;
  107.         java.util.Vector connections;
  108.         java.util.Vector md = new java.util.Vector();
  109.         ResourceBundle conn = ResourceBundle.getBundle("symantec.itools.resources.ConnBundle");
  110.  
  111.         try{
  112.             args = null;
  113.             MethodDescriptor getBorderIndent = new MethodDescriptor(beanClass.getMethod("getBorderIndent", args));
  114.  
  115.             connections = new java.util.Vector();
  116.             connection = new ConnectionDescriptor("output", "int", "",
  117.                                     "%name%.getBorderIndent()",
  118.                                     conn.getString("getBorderIndent"));
  119.             connections.addElement(connection);
  120.  
  121.             getBorderIndent.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  122.             md.addElement(getBorderIndent);
  123.         } catch (Exception e) { throw new Error("getBorderIndent:: " + e.toString()); }
  124.  
  125.         try{
  126.             args = null;
  127.             MethodDescriptor getBoxWidth = new MethodDescriptor(beanClass.getMethod("getBoxWidth", args));
  128.  
  129.             connections = new java.util.Vector();
  130.             connection = new ConnectionDescriptor("output", "int", "",
  131.                                     "%name%.getBoxWidth()",
  132.                                     conn.getString("getBoxWidth"));
  133.             connections.addElement(connection);
  134.  
  135.             getBoxWidth.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  136.             md.addElement(getBoxWidth);
  137.         } catch (Exception e) { throw new Error("getBoxWidth:: " + e.toString()); }
  138.  
  139.         try{
  140.             args = new Class[1];
  141.             args[0] = java.lang.Integer.TYPE ;
  142.             MethodDescriptor setBoxWidth = new MethodDescriptor(beanClass.getMethod("setBoxWidth", args));
  143.  
  144.             connections = new java.util.Vector();
  145.             connection = new ConnectionDescriptor("input", "int", "",
  146.                                     "%name%.setBoxWidth(%arg%);",
  147.                                     conn.getString("setBoxWidth"));
  148.             connections.addElement(connection);
  149.  
  150.             setBoxWidth.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  151.             md.addElement(setBoxWidth);
  152.         } catch (Exception e) { throw new Error("setBoxWidth:: " + e.toString()); }
  153.  
  154.         try{
  155.             args = null;
  156.             MethodDescriptor getBorderColor = new MethodDescriptor(beanClass.getMethod("getBorderColor", args));
  157.  
  158.             connections = new java.util.Vector();
  159.             connection = new ConnectionDescriptor("output", "Color", "",
  160.                                     "%name%.getBorderColor()",
  161.                                     conn.getString("getBorderColor"));
  162.             connections.addElement(connection);
  163.  
  164.             getBorderColor.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  165.             md.addElement(getBorderColor);
  166.         } catch (Exception e) { throw new Error("getBorderColor:: " + e.toString()); }
  167.  
  168.         try{
  169.             args = new Class[1];
  170.             args[0] = java.lang.Boolean.TYPE ;
  171.             MethodDescriptor setShowProgress = new MethodDescriptor(beanClass.getMethod("setShowProgress", args));
  172.  
  173.             connections = new java.util.Vector();
  174.             connection = new ConnectionDescriptor("input", "boolean", "",
  175.                                     "%name%.setShowProgress(%arg%);",
  176.                                     conn.getString("setShowProgress"));
  177.             connections.addElement(connection);
  178.  
  179.             setShowProgress.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  180.             md.addElement(setShowProgress);
  181.         } catch (Exception e) { throw new Error("setShowProgress:: " + e.toString()); }
  182.  
  183.         try{
  184.             args = null;
  185.             MethodDescriptor isShowProgress = new MethodDescriptor(beanClass.getMethod("isShowProgress", args));
  186.  
  187.             connections = new java.util.Vector();
  188.             connection = new ConnectionDescriptor("output", "boolean", "",
  189.                                     "%name%.isShowProgress()",
  190.                                     conn.getString("isShowProgress"));
  191.             connections.addElement(connection);
  192.  
  193.             isShowProgress.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  194.             md.addElement(isShowProgress);
  195.         } catch (Exception e) { throw new Error("isShowProgress:: " + e.toString()); }
  196.  
  197.         try{
  198.             args = null;
  199.             MethodDescriptor getGapWidth = new MethodDescriptor(beanClass.getMethod("getGapWidth", args));
  200.  
  201.             connections = new java.util.Vector();
  202.             connection = new ConnectionDescriptor("output", "int", "",
  203.                                     "%name%.getGapWidth()",
  204.                                     conn.getString("getGapWidth"));
  205.             connections.addElement(connection);
  206.  
  207.             getGapWidth.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  208.             md.addElement(getGapWidth);
  209.         } catch (Exception e) { throw new Error("getGapWidth:: " + e.toString()); }
  210.  
  211.         try{
  212.             args = new Class[1];
  213.             args[0] = java.lang.Integer.TYPE ;
  214.             MethodDescriptor setGapWidth = new MethodDescriptor(beanClass.getMethod("setGapWidth", args));
  215.  
  216.             connections = new java.util.Vector();
  217.             connection = new ConnectionDescriptor("input", "int", "",
  218.                                     "%name%.setGapWidth(%arg%);",
  219.                                     conn.getString("setGapWidth"));
  220.             connections.addElement(connection);
  221.  
  222.             setGapWidth.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  223.             md.addElement(setGapWidth);
  224.         } catch (Exception e) { throw new Error("setGapWidth:: " + e.toString()); }
  225.  
  226.         try{
  227.             args = null;
  228.             MethodDescriptor isDrawBoxes = new MethodDescriptor(beanClass.getMethod("isDrawBoxes", args));
  229.  
  230.             connections = new java.util.Vector();
  231.             connection = new ConnectionDescriptor("output", "boolean", "",
  232.                                     "%name%.isDrawBoxes()",
  233.                                     conn.getString("isDrawBoxes"));
  234.             connections.addElement(connection);
  235.  
  236.             isDrawBoxes.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  237.             md.addElement(isDrawBoxes);
  238.         } catch (Exception e) { throw new Error("isDrawBoxes:: " + e.toString()); }
  239.  
  240.         try{
  241.             args = new Class[1];
  242.             args[0] = java.lang.Integer.TYPE ;
  243.             MethodDescriptor setValue = new MethodDescriptor(beanClass.getMethod("setValue", args));
  244.  
  245.             connections = new java.util.Vector();
  246.             connection = new ConnectionDescriptor("input", "int", "",
  247.                                     "%name%.setValue(%arg%);",
  248.                                     conn.getString("setValueProgress"));
  249.             connections.addElement(connection);
  250.  
  251.             connection = new ConnectionDescriptor("input", "int", "",
  252.                                     "%name%.setValue(%name%.getValue() + %arg%);",
  253.                                     conn.getString("setValueProgressInc"));
  254.             connections.addElement(connection);
  255.  
  256.             connection = new ConnectionDescriptor("input", "int", "",
  257.                                     "%name%.setValue(%name%.getValue() - %arg%);",
  258.                                     conn.getString("setValueProgressDec"));
  259.             connections.addElement(connection);
  260.  
  261.             setValue.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  262.             md.addElement(setValue);
  263.         } catch (Exception e) { throw new Error("setValue:: " + e.toString()); }
  264.  
  265.         try{
  266.             args = new Class[1];
  267.             args[0] = java.lang.Boolean.TYPE ;
  268.             MethodDescriptor setDrawBoxes = new MethodDescriptor(beanClass.getMethod("setDrawBoxes", args));
  269.  
  270.             connections = new java.util.Vector();
  271.             connection = new ConnectionDescriptor("input", "boolean", "",
  272.                                     "%name%.setDrawBoxes(%arg%);",
  273.                                     conn.getString("setDrawBoxes"));
  274.             connections.addElement(connection);
  275.  
  276.             setDrawBoxes.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  277.             md.addElement(setDrawBoxes);
  278.         } catch (Exception e) { throw new Error("setDrawBoxes:: " + e.toString()); }
  279.  
  280.         try{
  281.             args = null;
  282.             MethodDescriptor getProgressBarColor = new MethodDescriptor(beanClass.getMethod("getProgressBarColor", args));
  283.  
  284.             connections = new java.util.Vector();
  285.             connection = new ConnectionDescriptor("output", "Color", "",
  286.                                     "%name%.getProgressBarColor()",
  287.                                     conn.getString("getProgressBarColor"));
  288.             connections.addElement(connection);
  289.  
  290.             getProgressBarColor.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  291.             md.addElement(getProgressBarColor);
  292.         } catch (Exception e) { throw new Error("getProgressBarColor:: " + e.toString()); }
  293.  
  294.         try{
  295.             args = new Class[1];
  296.             args[0] = java.awt.Color.class ;
  297.             MethodDescriptor setBorderColor = new MethodDescriptor(beanClass.getMethod("setBorderColor", args));
  298.  
  299.             connections = new java.util.Vector();
  300.             connection = new ConnectionDescriptor("input", "Color", "",
  301.                                     "%name%.setBorderColor(%arg%);",
  302.                                     conn.getString("setBorderColor"));
  303.             connections.addElement(connection);
  304.  
  305.             setBorderColor.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  306.             md.addElement(setBorderColor);
  307.         } catch (Exception e) { throw new Error("setBorderColor:: " + e.toString()); }
  308.  
  309.         try{
  310.             args = new Class[1];
  311.             args[0] = java.lang.Integer.TYPE ;
  312.             MethodDescriptor setBorderIndent = new MethodDescriptor(beanClass.getMethod("setBorderIndent", args));
  313.  
  314.             connections = new java.util.Vector();
  315.             connection = new ConnectionDescriptor("input", "int", "",
  316.                                     "%name%.setBorderIndent(%arg%);",
  317.                                     conn.getString("setBorderIndent"));
  318.             connections.addElement(connection);
  319.  
  320.             setBorderIndent.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  321.             md.addElement(setBorderIndent);
  322.         } catch (Exception e) { throw new Error("setBorderIndent:: " + e.toString()); }
  323.  
  324.         try{
  325.             args = null;
  326.             MethodDescriptor getValue = new MethodDescriptor(beanClass.getMethod("getValue", args));
  327.  
  328.             connections = new java.util.Vector();
  329.             connection = new ConnectionDescriptor("output", "int", "",
  330.                                     "%name%.getValue()",
  331.                                     conn.getString("getValueProgress"));
  332.             connections.addElement(connection);
  333.  
  334.             getValue.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  335.             md.addElement(getValue);
  336.         } catch (Exception e) { throw new Error("getValue:: " + e.toString()); }
  337.  
  338.         try{
  339.             args = new Class[1];
  340.             args[0] = java.awt.Color.class ;
  341.             MethodDescriptor setProgressBarColor = new MethodDescriptor(beanClass.getMethod("setProgressBarColor", args));
  342.  
  343.             connections = new java.util.Vector();
  344.             connection = new ConnectionDescriptor("input", "Color", "",
  345.                                     "%name%.setProgressBarColor(%arg%);",
  346.                                     conn.getString("setProgressBarColor"));
  347.             connections.addElement(connection);
  348.  
  349.             setProgressBarColor.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  350.             md.addElement(setProgressBarColor);
  351.         } catch (Exception e) { throw new Error("setProgressBarColor:: " + e.toString()); }
  352.  
  353.         try{
  354.             args = null;
  355.             MethodDescriptor getBevelStyle = new MethodDescriptor(beanClass.getMethod("getBevelStyle", args));
  356.  
  357.             connections = new java.util.Vector();
  358.             connection = new ConnectionDescriptor("output", "int", "",
  359.                                     "%name%.getBevelStyle()",
  360.                                     conn.getString("getBevelStyle"));
  361.             connections.addElement(connection);
  362.  
  363.             getBevelStyle.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  364.             md.addElement(getBevelStyle);
  365.         } catch (Exception e) { throw new Error("getBevelStyle:: " + e.toString()); }
  366.  
  367.         try{
  368.             args = null;
  369.             MethodDescriptor getAlignStyle = new MethodDescriptor(beanClass.getMethod("getAlignStyle", args));
  370.  
  371.             connections = new java.util.Vector();
  372.             connection = new ConnectionDescriptor("output", "int", "",
  373.                                     "%name%.getAlignStyle()",
  374.                                     conn.getString("getAlignStyle"));
  375.             connections.addElement(connection);
  376.  
  377.             getAlignStyle.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  378.             md.addElement(getAlignStyle);
  379.         } catch (Exception e) { throw new Error("getAlignStyle:: " + e.toString()); }
  380.  
  381.         try{
  382.             args = new Class[1];
  383.             args[0] = java.lang.Integer.TYPE ;
  384.             MethodDescriptor setBevelStyle = new MethodDescriptor(beanClass.getMethod("setBevelStyle", args));
  385.  
  386.             connections = new java.util.Vector();
  387.             connection = new ConnectionDescriptor("input", "int", "",
  388.                                     "%name%.setBevelStyle(%arg%);",
  389.                                     conn.getString("setBevelStyle"));
  390.             connections.addElement(connection);
  391.  
  392.             setBevelStyle.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  393.             md.addElement(setBevelStyle);
  394.         } catch (Exception e) { throw new Error("setBevelStyle:: " + e.toString()); }
  395.  
  396.         try{
  397.             args = new Class[1];
  398.             args[0] = java.lang.Integer.TYPE ;
  399.             MethodDescriptor setAlignStyle = new MethodDescriptor(beanClass.getMethod("setAlignStyle", args));
  400.  
  401.             connections = new java.util.Vector();
  402.             connection = new ConnectionDescriptor("input", "int", "",
  403.                                     "%name%.setAlignStyle(%arg%);",
  404.                                     conn.getString("setAlignStyle"));
  405.             connections.addElement(connection);
  406.  
  407.             setAlignStyle.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  408.             md.addElement(setAlignStyle);
  409.         } catch (Exception e) { throw new Error("setAlignStyle:: " + e.toString()); }
  410.  
  411.         MethodDescriptor[] rv = new MethodDescriptor[md.size()];
  412.         md.copyInto(rv);
  413.  
  414.         return rv;
  415.     }
  416.  
  417.     /**
  418.      * Returns descriptions of this bean's properties.
  419.      */
  420.     public PropertyDescriptor[] getPropertyDescriptors() {
  421.         ResourceBundle prop = ResourceBundle.getBundle("symantec.itools.resources.PropBundle");
  422.  
  423.         try{
  424.  
  425.         PropertyDescriptor progressBarColor = new PropertyDescriptor("progressBarColor", beanClass);
  426.         progressBarColor.setBound(true);
  427.         progressBarColor.setConstrained(true);
  428.         progressBarColor.setDisplayName(prop.getString("progressBarColor"));
  429.  
  430.         PropertyDescriptor borderColor = new PropertyDescriptor("borderColor", beanClass);
  431.         borderColor.setBound(true);
  432.         borderColor.setConstrained(true);
  433.         borderColor.setDisplayName(prop.getString("borderColor"));
  434.  
  435.         PropertyDescriptor drawBoxes = new PropertyDescriptor("drawBoxes", beanClass);
  436.         drawBoxes.setBound(true);
  437.         drawBoxes.setConstrained(true);
  438.         drawBoxes.setDisplayName(prop.getString("drawBoxes"));
  439.  
  440.         PropertyDescriptor boxWidth = new PropertyDescriptor("boxWidth", beanClass);
  441.         boxWidth.setBound(true);
  442.         boxWidth.setConstrained(true);
  443.         boxWidth.setDisplayName(prop.getString("boxWidth"));
  444.  
  445.         PropertyDescriptor gapWidth = new PropertyDescriptor("gapWidth", beanClass);
  446.         gapWidth.setBound(true);
  447.         gapWidth.setConstrained(true);
  448.         gapWidth.setDisplayName(prop.getString("gapWidth"));
  449.  
  450.         PropertyDescriptor showProgress = new PropertyDescriptor("showProgress", beanClass);
  451.         showProgress.setBound(true);
  452.         showProgress.setConstrained(true);
  453.         showProgress.setDisplayName(prop.getString("showProgress"));
  454.  
  455.         PropertyDescriptor bevelStyle = new PropertyDescriptor("bevelStyle", beanClass);
  456.         bevelStyle.setBound(true);
  457.         bevelStyle.setConstrained(true);
  458.         bevelStyle.setDisplayName(prop.getString("bevelStyle"));
  459.         bevelStyle.setValue("ENUMERATION", "BEVEL_LOWERED=0, BEVEL_RAISED=1, BEVEL_LINE=2, BEVEL_NONE=3");
  460.  
  461.         PropertyDescriptor alignStyle = new PropertyDescriptor("alignStyle", beanClass);
  462.         alignStyle.setBound(true);
  463.         alignStyle.setConstrained(true);
  464.         alignStyle.setDisplayName(prop.getString("alignStyle"));
  465.         alignStyle.setValue("ENUMERATION", "ALIGN_LEFT=0, ALIGN_CENTERED=1, ALIGN_RIGHT=2");
  466.  
  467.         PropertyDescriptor borderIndent = new PropertyDescriptor("borderIndent", beanClass);
  468.         borderIndent.setBound(true);
  469.         borderIndent.setConstrained(true);
  470.         borderIndent.setDisplayName(prop.getString("borderIndent"));
  471.         borderIndent.setValue("ENUMERATION", "INDENT_ZERO, INDENT_ONE, INDENT_TWO");
  472.  
  473.         PropertyDescriptor value = new PropertyDescriptor("value", beanClass);
  474.         value.setBound(true);
  475.         value.setConstrained(true);
  476.         value.setDisplayName(prop.getString("value"));
  477.  
  478.         PropertyDescriptor[] rv = {
  479.             progressBarColor,
  480.             borderColor,
  481.             drawBoxes,
  482.             boxWidth,
  483.             gapWidth,
  484.             showProgress,
  485.             bevelStyle,
  486.             alignStyle,
  487.             borderIndent,
  488.             value};
  489.         return rv;
  490.         } catch (IntrospectionException e) { throw new Error(e.toString()); }
  491.     }
  492.  
  493.     private final static Class beanClass = ProgressBar.class;
  494.  
  495.     }    //  end of class ProgressBarBeanInfo